using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

//Importamos
using EventSys.BussinesEntities;

namespace EventSys.Repository.Mapping
{
    public class FormaPagoMap : EntityTypeConfiguration<FormaPago>
    {
        public FormaPagoMap()
        {
            // Primary Key
            this.HasKey(t => t.idFormaPago);

            // Properties
            this.Property(t => t.FormaPago1)
                .HasMaxLength(20);

            // Table & Column Mappings
            this.ToTable("FormaPago");
            this.Property(t => t.idFormaPago).HasColumnName("idFormaPago");
            this.Property(t => t.FormaPago1).HasColumnName("FormaPago");
        }
    }
}
